//
//  UIButton+DFExtension.h
//  Pods
//
//  Created by rujia chen on 17/5/11.
//
//

#import <UIKit/UIKit.h>


/**
 图片标题位置

 - DFImagePositionTypeLeft:   图片在左，标题在右
 - DFImagePositionTypeRight:  图片在右，标题在左
 - DFImagePositionTypeTop:    图片在上，标题在下
 - DFImagePositionTypeBottom: 图片在下，标题在上
 */
typedef NS_ENUM(NSInteger, DFImagePositionType) {
    DFImagePositionTypeLeft,
    DFImagePositionTypeRight,
    DFImagePositionTypeTop,
    DFImagePositionTypeBottom
};

@interface UIButton (DFExtension)

- (void)df_setImagePositionWithType:(DFImagePositionType)type spacing:(CGFloat)spacing;

@end
